import config from "@/config";
import http from "@/utils/request";

export default {
    synchronize: {
			url: `${config.API_URL}/adminapi/auth.Admin/SendTongbu`,
			name: "同步当前管理员信息",
			post: async function (data = {}) {
				return await http.post(this.url, data);
			},
		},
	user: {
		info: {
			url: `${config.API_URL}/adminapi/auth.admin/mySelf`,
			name: "获取当前管理员信息",
			get: async function (data = {}) {
				return await http.get(this.url, data);
			},
		},
		editSelf: {
			url: `${config.API_URL}/adminapi/auth.admin/editSelf`,
			name: "修改当前管理员信息",
			post: async function (data = {}) {
				return await http.post(this.url, data);
			},
		},
		editPassword: {
			url: `${config.API_URL}/adminapi/auth.admin/editPassword`,
			name: "修改密码",
			post: async function (data = {}) {
				return await http.post(this.url, data);
			},
		},
		setJobs: {
			url: `${config.API_URL}/adminapi/auth.admin_shop/setJobs`,
			name: "设置商户岗位",
			post: async function (data = {}) {
				return await http.post(this.url, data);
			},
		},
	},
	log: {
		lists: {
			url: `${config.API_URL}/adminapi/setting.system.log/lists`,
			name: "获取操作日志",
			get: async function (data = {}) {
				return await http.get(this.url, data);
			},
		},
	},
};
